<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>左侧菜单</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="images/main.css">
<script type="text/javascript" src="images/jquery.js"></script>

</head>

<body>
	<div class="menubox">
		<ul>
		<s:if test="#session.SESSION_MENU != null">
		<s:iterator value="#session.SESSION_MENU" var="each" status="st">
			<li><a id="<s:property value="#st.index"/>" href="<s:property value="#each.menuUrl"/>" target="mainFrame"><img src="images/menu.gif"/><span><s:property value="#each.menuName"/></span></a></li>
		</s:iterator>
			<script type="text/javascript">
				//parent.mainFrame.src="wellcome.jsp";
				$(window.parent.document).find("#mainFrame").attr("src",$("#0").attr("href")); 
			</script>
			</s:if>
			<s:else>
			<script type="text/javascript">
				//parent.mainFrame.src="wellcome.jsp";
				$(window.parent.document).find("#mainFrame").attr("src","wellcome.jsp"); 
			</script>
			<li><a href="logout" target="_top"><img src="images/menu.gif"/><span>注销登录</span></a></li>
			</s:else>
		</ul>
	</div>
</body>
</html>
